<script setup lang="ts">
import { useTestContext } from './useContext';
import ChildTwo from './child-two.vue';
let { name, age, height } = useTestContext();
let context = useTestContext();

console.log(context, 9999);

let _age = ref(age);

function handleClick () {
  _age.value = 8;
}
</script>

<template>
  <div>child-one</div>
  <div>名字：{{ name }} 年龄：{{ age }} 高度：{{ height }}</div>
  <button @click="handleClick">改变年龄</button>
  <ChildTwo/>
</template>

<style scoped lang="scss">

</style>
